package day03;

import java.util.Scanner;

public class Exc_01 {
    public static void main(String[] args) {
        //求完数
        for (int a = 2; a < 10000; a++) {
            int num = 0;
            for (int b = 1; b < a; b++) {
                if (a % b == 0) {
                    num += b;
                }
                if (a == num && a == b + 1) {
                    System.out.println(a);
                }

            }
        }
        //整数加100是一个完全平方数，再加上168又是一个完全平方数
        for (int i = 1; i <= 10000; i++) {
            int a = 100;
            a = a + i;
            for (int s = 1; s * s <= i+100; s++) {
                if (s * s == i + 100) {
                    for (int s1 = 1; s1 * s1 <= i + 100 + 168; s1++) {
                        if (s1 * s1 == i +100 + 168) {
                            System.out.println(i);
                        }

                    }
                }
            }
        }
        //输入某年某月某日,判断这一天是这一年的第几天
        int year = new Scanner(System.in).nextInt();
        int month = new Scanner(System.in).nextInt();
        int day = new Scanner(System.in).nextInt();
        int num2 = 0;
        int[] jmonth={31,28,31,30,31,30,31,31,30,31,30};
        if(year%4==0&&year%100!=0&&year%400==0){
            jmonth[1] = 29;
        }
        for(int i = 0;i<month-1;i++){
            num2 += jmonth[i];
        }
        System.out.println("这是"+year+"年的第"+(num2+day)+"天");
    }
}
